/**
 * User: alesj
 * Date: 18.3.2006
 * Time: 16:09:36
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blade.data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;

/**
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
@Entity
@Table(name = "PIECE")
public class Piece extends Rectangle {

    Frame frame;
    Double x;
    Double y;
    Boolean rotated;

    @ManyToOne
    @JoinColumn(name = "REQUEST_ID", unique = false, nullable = false, insertable = true, updatable = true)
    public Frame getFrame() {
        return frame;
    }

    public void setFrame(Frame frame) {
        this.frame = frame;
    }

    public Double getX() {
        return x;
    }

    public void setX(Double x) {
        this.x = x;
    }

    public Double getY() {
        return y;
    }

    public void setY(Double y) {
        this.y = y;
    }

    public Boolean isRotated() {
        return rotated;
    }

    public void setRotated(Boolean rotated) {
        this.rotated = rotated;
    }

}
